/**
 * 
 */
package org.insia.smartposse.metier;

import java.io.Serializable;

import org.insia.smartposse.metier.webservice.LightMessagerie;

/**
 * @author raguerri
 *
 */
public class Messagerie 
implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6727154396107341031L;
	private long _id = -1L;
	private User _user_recip;
	private User _user_sender;
	private String _title;
	private String _message;
	private int _read;
	
	/**
	 * Empty constructor.
	 *
	 */
	public Messagerie() {
	}
	/**
	 * @return the _id
	 */
	public long getId() {
		return _id;
	}
	/**
	 * @param _id the _id to set
	 */
	public void setId(long id) {
		this._id = id;
	}
	/**
	 * @return the _message
	 */
	public String getMessage() {
		return _message;
	}
	/**
	 * @param _message the _message to set
	 */
	public void setMessage(String message) {
		this._message = message;
	}
	/**
	 * @return the _read
	 */
	public int getRead() {
		return _read;
	}
	/**
	 * @param _read the _read to set
	 */
	public void setRead(int read) {
		this._read = read;
	}
	/**
	 * @return the _title
	 */
	public String getTitle() {
		return _title;
	}
	/**
	 * @param _title the _title to set
	 */
	public void setTitle(String title) {
		this._title = title;
	}
	/**
	 * @return the _user_recip
	 */
	public User getUser_recip() {
		return _user_recip;
	}
	/**
	 * @param _user_recip the _user_recip to set
	 */
	public void setUser_recip(User user_recip) {
		this._user_recip = user_recip;
	}
	/**
	 * @return the _user_sender
	 */
	public User getUser_sender() {
		return _user_sender;
	}
	/**
	 * @param _user_sender the _user_sender to set
	 */
	public void setUser_sender(User user_sender) {
		this._user_sender = user_sender;
	}
	/**
	 * 
	 * @return lcatet the webservice Messagerie representation
	 */
	public LightMessagerie setLight() {
		LightMessagerie lmsg = new LightMessagerie(this);
		return lmsg;
	}
}
